Chapter 10 - Advance Techniques - Animation with HDRI

goldimage.jpg

Part 1

 

1.       Welcome to Animations with HDRI

 

2.       HDRI can be very useful for use with animations

 

          a.       It can take care of the lighting

 

                    i.        The lighting will usually match perfectly with the background

                              (1)     Meaning more time you will have to spend on other aspects of your animation

 

                    ii.       Can make a good backdrop or background

                              (1)     with your character appearing to be right there in the scene.

 

                    iii.      Which could minimize number of objects needed in your project

                              (1)     which can dramatically reduce render times overall and less time spent making objects.

          b.       Very quick high quality rendering depending upon settings.

 

                    i.        Which may allow other rendering enhancements such as motion blur while still getting animations done on time.

 

3.       Lets go ahead and look at an animation where a solder is running down an alley, with some tall buildings and interacts with another character.

 

          a.       The interesting part is that there is no building, alley or even ground.

 

                    i.        That is the HDRI

 

                    ii.       Reminds me of the Matrix, “There is no spoon”, anyways. . .

 

          b.       There are only five objects to the whole scene

 

                    i.        Some cool Magic Bones character animations

                              (1)     A Soldier

                              (2)     MrBones

 

                    ii.       A low intensity light for shadows

 

                    iii.      A plane with shadow catcher material and camera

 

          c.       Since the scene turned out to be rather simple, I average around 10 seconds a frame and that is on a much slower computer then what I have now.

 

          d.       The important points to note are

 

                    i.        Objects in the scene stayed in sync with the background and became one with the environment.

                              (1)     Note that the camera only rotated, no movement in the x, y, z position

                                         (a)     As long as the camera does not move with (x, y, z motion),, objects and the HDRI environment will work together and look to be part of the same environment.

                                         (b)     Rotating the camera is fine

                              (2)     If you move the camera in x, y, or z then any object in the scene will appear to fly against the background.

                                         (a)     Unless scene objects duplicates same camera motion in the x, y, z motion

                                                   (i)      This we will do later with that volumetric scene from last chapter.

 

                    ii.       This behavior you already saw from using the course camera linked with the HDRI Panorama Viewer. If you use those tools in an animation then the motions you see against the background will be the same as what will render later in your animation.

 

4.       Lets take a quick look at a second animation with another cool looking MagicBone character called Gold Finger. In this case he looks like he is sinking in the snow and interacting with the HDRI itself.

 

          a.       Once again the snow does not exist or the object for the snow that is.

 

                    i.        What is used is a plane where part of our character is hidden

                              (1)     In this case it is a shadow plain, a plane with shadow catcher material being used

 

                    ii.       Something like this can be used to allow your own characters to appear to walk around corners or peer through windows in an HDRI background

                              (1)     saving you time from having to create objects, positioning them and making them part of the same environment

                              (2)     Use your own imagination, this simple technique can be very powerful.

 

                    iii.      I turned off HDRI shadows and used one shadow catcher for this animation. Render time was in order of about 3 seconds a frame, so I went ahead and used motion blur with this and the animation still rendered rather quick.

 

5.       That’s it for part 1, see you in the next.



Part 2

 

6.       Go ahead and load the volumetric scene you saved from the previous chapter.

 

7.       Since HDRI background only moves if the camera or view is rotated, we can use this to our advantage for a moving fog effect.

 

          a.       Set Global environment map settings as you see,

 

                    i.        Notice since we are going to use some regular lights for shadows and volumetric effect,

 

                    ii.       “Use only Environmental Lights” is unchecked

 

                    iii.      HDRI shadows is also disabled.

 

          b.       Reset the shadow Caster internal lights

 

                    i.        Use the scene editor and open up the HDRIshadowCaster and click on the first light.

 

                    ii.       right click on intensity bar (light panel)

                              (1)     you notice that intensity is set at 1.5

 

                    iii.      Select the second HDRIshadowCaster light and notice the value (light intensity) was reset to zero.

                              (1)     Lets go ahead and put it back at -1.5.

 

          c.       Copy the spot light with volumetric by using link editor.

 

          d.       Select spot light in Link editor and Copy.

 

                    i.        Select copied spotlight in Link editor and adjust settings in light panel as follows

 

                              (1)     Light intensity to the same as original spot light but negative

                                         (a)     If the value does not set to negative, you will have to turn off the bridge. As you can see it keeps on resetting to zero automatically.

                                         (b)     Open up preferences in stack view and turn off the bridge

                                         (c)     now the spotlight will accept a negative value.

 

                    ii.       Turn off shadows

 

                    iii.      This will offset any lighting caused by the original spotlight plus this setup of two spotlights can be used to adjust volumetric brightness and color of fog without adding any light to the scene. Basically it is very similar to the shadow caster, with one positive light with shadows but also volumetric. The negative spotlight has shadows turned off with intensity same but opposite value.

 

                    iv.      Open the simple volumetric panel and set settings as you see

                              (1)     Fog density 1

                              (2)     Samples 60

                              (3)     Noise amplitude 0.1

                              (4)     Noise scale 0.2

                              (5)     Noise gain 1

                              (6)     Source attenuation 0

                              (7)     Surface attenuation 0

                              (8)     Volume attenuation 0.1


 

          e.       Close some panels and lets take a look at our scene from prospective view.

 

          f.       This time lets move the camera in the x, y and z directions but no rotation of camera, also moving scene objects the same distance except for the two spot lights.

 

                    i.        Now what will the HDRI background do? What do you think?

                              (1)     Since camera we will not rotate the HDRI background should stay the same, the reflection in the reflective sphere should show this.

 

                    ii.       Select all objects in the scene using scene editor except the two spotlights, hold the ctrl key down on keyboard and select each object except for the two spotlights

 

                              (1)     This will make a group selection so that we can move everything (except the spotlights) to a new location.

 

                    iii.      In Scene editor set frame to 140

 

                    iv.      With selection in modeler and perspective vies, move all objects up and towards the camera location, like so

 

                              (1)     This should animate the volumetric

 

                    v.       Lets preview this animation by playing from perspective view

 

                    vi.      Select camera view and play animation again, nothing appears to change

                              (1)     Since everything is moving the same with the camera, except the two spotlights that is how it appears.

 

                    vii.     Render the newly created animation and you should get moving fog.

 

                    viii.    You should get something like this, note even though the camera is moving but since the objects are moving relative and exactly the same as the camera, the HDRI, background in the reflective sphere does not change since no camera rotation is present.

 

                    ix.      Use your creativity and imagination and this could be used to simulate a number of effects from smoke, to rocket engines.

 

8.       That’s it for now, I hope you enjoyed this course. If you have any questions please let me know in the Proteam forums or the public forums of Caligari. Thank you very much.